import { http } from "..";

const api = http('ecard')

/**
 * 获取分享的用户数据
 * @param {String} id 用户id
 */
export const getECardShareData = (id) => {
	return api({
		url: `/api/ecard/share/user/${id}`,
		hideToken: true,
	})
}

/**
 * 获取用户配置
 */
export const getUserSetting = (settingId, userId) => {
	return api({
		url: `/api/ecard/share/user/setting/${settingId}/${userId}`,
		hideToken: true,
	})
}